﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

namespace iMall.AtoZ.Helper
{
    public class OrderInfoSqlDAL : IDAL<OrderInfoEnity>
    {
        public bool Insert ( OrderInfoEnity entity )
        {
            string SQLCommand = AtoZUtility.GetInserSql("OrderInfo",entity);

            List<SqlParameter> parameters = new List<SqlParameter>();


            SqlDALHelper.ExecuteSQLNonQuery(SQLCommand, parameters.ToArray());
            return true;
        }


        public bool Upadte ( OrderInfoEnity entity )
        {
            string SQLCommand = AtoZUtility.GetUpdateSql("OrderInfo", entity);

            List<SqlParameter> parameters = new List<SqlParameter>();

            SqlDALHelper.ExecuteSQLNonQuery(SQLCommand, parameters.ToArray());
            return true;
        }

        public bool Delete ( int id )
        {
            throw new NotImplementedException();
        }

        public OrderInfoEnity GetByID ( int id )
        {
            throw new NotImplementedException();
        }

        public List<OrderInfoEnity> GetAll ( )
        {
            throw new NotImplementedException();
        }

        public List<OrderInfoEnity> GetByBatchID ( Guid batchID )
        {
            throw new NotImplementedException();
        }
    }
}